<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>


</head>


<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>财务管理</a></li>
		<li><a>开票列表</a></li>
		</ul>
		</div>

		<div class="rightinfo">
		<div class="tools">

		</div>
<table class="tablelist">
	<thead>
		<tr>
		<th>序号</th>
		<th>账号</th>
		<th>收件人</th>
		<th>联系电话</th>
		<th>开票类型</th>
		<th>状态</th>
		<th>提交时间</th>
		<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<foreach name='invoicelist' item='v'>
			<tr>
				<td>{$v.id}</td>
				<td>{$v.username}</td>
				<td>{$v.recipient}</td>
				<td>{$v.phone}</td>
				<td>
					<switch name="v.type" >
						<case value="1">增值税普票</case>
						<case value="2">增值税专票</case>
						<default />未知
					</switch>
				</td>
				<td>
					<switch name="v.status" >
						<case value="0">未开票</case>
						<case value="1">已开票</case>
						<default />未知
					</switch>
				</td>
				<td>{$v.time}</td>
				<td>
				<a href="{:U('/Home/Money/invoice_message',array('id'=>$v['id']))}" class="tablelink">
				<if condition="$v.status == 0">详情<else />查看</if>
				</a>
				</td>
			</tr>
		</foreach>
	</tbody>
</table>
<style>.pages a,.pages span {
	display:inline-block;
	padding:2px 5px;
	margin:0 1px;
	border:1px solid #f0f0f0;
	-webkit-border-radius:3px;
	-moz-border-radius:3px;
	border-radius:3px;
}
.pages a,.pages li {
	display:inline-block;
	list-style: none;
	text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
	margin:0;
}
.pages a:hover{
	border-color:#50A8E6;
}
.pages span.current{
	background:#50A8E6;
	color:#FFF;
	font-weight:700;
	border-color:#50A8E6;
}
</style>

		<div class="pages"><br />
			<div align="right">{$page}</div>
		</div>

</div>

<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
</script>

</body>

</html>
